package com.mspbots.core.ticketai.model;

import cn.hutool.json.JSONObject;
import cn.hutool.json.JSONUtil;

/**
 * @author ：Jay.Yang
 * @date ：Created in 2019年12月30日18点29分
 * @modified By：
 * <p>
 * CUSTOM_GRADE_POINT_RULE
 * fieldName,fieldType,filterType,value,point,selected
 * datetime,String,boolean,number
 */
public class TicketCustom {

    /**
     * custom ticket fields and filter
     */
    public static JSONObject ticketFildlesJsonObject = JSONUtil.parseObj("{" +
            "\"filterTypes\":[" +
            "\"equal\"," +
            "\"no_equal\"," +
            "\"greater_than\"," +
            "\"greater_than_or_equal\"," +
            "\"less_than\"," +
            "\"less_than_or_equal\"," +
            "\"contains\"," +
            "\"no_contains\"," +
            "]," +
            "\"fieldsInfo\":[" +
            "{\"fieldName\":\"_info.dateEntered\",\"fieldType\":\"datetime\"}," +
            "{\"fieldName\":\"_info.enteredBy\",\"fieldType\":\"datetime\"}," +
            "{\"fieldName\":\"_info.lastUpdated\",\"fieldType\":\"datetime\"}," +
            "{\"fieldName\":\"_info.updatedBy\",\"fieldType\":\"datetime\"}," +
            "{\"fieldName\":\"actualHours\",\"fieldType\":\"number\"}," +
            "{\"fieldName\":\"addressLine1\",\"fieldType\":\"String\"}," +
            "{\"fieldName\":\"allowAllClientsPortalView\",\"fieldType\":\"boolean\"}," +
            "{\"fieldName\":\"approved\",\"fieldType\":\"boolean\"}," +
            "{\"fieldName\":\"automaticEmailCc\",\"fieldType\":\"String\"}," +
            "{\"fieldName\":\"automaticEmailCcFlag\",\"fieldType\":\"boolean\"}," +
            "{\"fieldName\":\"automaticEmailContactFlag\",\"fieldType\":\"boolean\"}," +
            "{\"fieldName\":\"automaticEmailResourceFlag\",\"fieldType\":\"boolean\"}," +
            "{\"fieldName\":\"billExpenses\",\"fieldType\":\"String\"}," +
            "{\"fieldName\":\"billProducts\",\"fieldType\":\"String\"}," +
            "{\"fieldName\":\"billTime\",\"fieldType\":\"String\"}," +
            "{\"fieldName\":\"billingMethod\",\"fieldType\":\"String\"}," +
            "{\"fieldName\":\"board.id\",\"fieldType\":\"number\"}," +
            "{\"fieldName\":\"board.name\",\"fieldType\":\"String\"}," +
            "{\"fieldName\":\"city\",\"fieldType\":\"String\"}," +
            "{\"fieldName\":\"closedFlag\",\"fieldType\":\"boolean\"}," +
            "{\"fieldName\":\"company.id\",\"fieldType\":\"number\"}," +
            "{\"fieldName\":\"company.identifier\",\"fieldType\":\"String\"}," +
            "{\"fieldName\":\"company.name\",\"fieldType\":\"String\"}," +
            "{\"fieldName\":\"contact.id\",\"fieldType\":\"number\"}," +
            "{\"fieldName\":\"contact.name\",\"fieldType\":\"number\"}," +
            "{\"fieldName\":\"contactPhoneNumber\",\"fieldType\":\"number\"}," +
            "{\"fieldName\":\"country.id\",\"fieldType\":\"number\"}," +
            "{\"fieldName\":\"country.name\",\"fieldType\":\"String\"}," +
            "{\"fieldName\":\"currency.id\",\"fieldType\":\"number\"}," +
            "{\"fieldName\":\"currency.isoCode\",\"fieldType\":\"String\"}," +
            "{\"fieldName\":\"currency.name\",\"fieldType\":\"String\"}," +
            "{\"fieldName\":\"currency.symbol\",\"fieldType\":\"String\"}," +
            "{\"fieldName\":\"customerUpdatedFlag\",\"fieldType\":\"boolean\"}," +
            "{\"fieldName\":\"dateEntered\",\"fieldType\":\"datetime\"}," +
            "{\"fieldName\":\"dateResolved\",\"fieldType\":\"datetime\"}," +
            "{\"fieldName\":\"dateResplan\",\"fieldType\":\"datetime\"}," +
            "{\"fieldName\":\"dateResponded\",\"fieldType\":\"datetime\"}," +
            "{\"fieldName\":\"department.id\",\"fieldType\":\"number\"}," +
            "{\"fieldName\":\"department.identifier\",\"fieldType\":\"String\"}," +
            "{\"fieldName\":\"department.name\",\"fieldType\":\"String\"}," +
            "{\"fieldName\":\"enteredBy\",\"fieldType\":\"String\"}," +
            "{\"fieldName\":\"estimatedExpenseCost\",\"fieldType\":\"number\"}," +
            "{\"fieldName\":\"estimatedExpenseRevenue\",\"fieldType\":\"number\"}," +
            "{\"fieldName\":\"estimatedProductCost\",\"fieldType\":\"number\"}," +
            "{\"fieldName\":\"estimatedProductRevenue\",\"fieldType\":\"number\"}," +
            "{\"fieldName\":\"estimatedTimeCost\",\"fieldType\":\"number\"}," +
            "{\"fieldName\":\"estimatedTimeRevenue\",\"fieldType\":\"number\"}," +
            "{\"fieldName\":\"externalXRef\",\"fieldType\":\"String\"}," +
            "{\"fieldName\":\"hasChildTicket\",\"fieldType\":\"boolean\"}," +
            "{\"fieldName\":\"hasMergedChildTicketFlag\",\"fieldType\":\"boolean\"}," +
            "{\"fieldName\":\"impact\",\"fieldType\":\"String\"}," +
            "{\"fieldName\":\"isInSla\",\"fieldType\":\"boolean\"}," +
            "{\"fieldName\":\"location.id\",\"fieldType\":\"number\"}," +
            "{\"fieldName\":\"location.name\",\"fieldType\":\"String\"}," +
            "{\"fieldName\":\"mobileGuid\",\"fieldType\":\"String\"}," +
            "{\"fieldName\":\"owner.id\",\"fieldType\":\"number\"}," +
            "{\"fieldName\":\"owner.identifier\",\"fieldType\":\"String\"}," +
            "{\"fieldName\":\"owner.name\",\"fieldType\":\"String\"}," +
            "{\"fieldName\":\"priority.id\",\"fieldType\":\"number\"}," +
            "{\"fieldName\":\"priority.name\",\"fieldType\":\"String\"}," +
            "{\"fieldName\":\"priority.sort\",\"fieldType\":\"number\"}," +
            "{\"fieldName\":\"recordType\",\"fieldType\":\"String\"}," +
            "{\"fieldName\":\"resPlanMinutes\",\"fieldType\":\"number\"}," +
            "{\"fieldName\":\"resolveMinutes\",\"fieldType\":\"number\"}," +
            "{\"fieldName\":\"resources\",\"fieldType\":\"String\"}," +
            "{\"fieldName\":\"respondMinutes\",\"fieldType\":\"number\"}," +
            "{\"fieldName\":\"serviceLocation.id\",\"fieldType\":\"number\"}," +
            "{\"fieldName\":\"serviceLocation.name\",\"fieldType\":\"String\"}," +
            "{\"fieldName\":\"severity\",\"fieldType\":\"String\"}," +
            "{\"fieldName\":\"site.id\",\"fieldType\":\"number\"}," +
            "{\"fieldName\":\"site.name\",\"fieldType\":\"String\"}," +
            "{\"fieldName\":\"siteName\",\"fieldType\":\"String\"}," +
            "{\"fieldName\":\"sla._info.sla_href\",\"fieldType\":\"String\"}," +
            "{\"fieldName\":\"sla.id\",\"fieldType\":\"number\"}," +
            "{\"fieldName\":\"sla.name\",\"fieldType\":\"String\"}," +
            "{\"fieldName\":\"source.id\",\"fieldType\":\"number\"}," +
            "{\"fieldName\":\"source.name\",\"fieldType\":\"String\"}," +
            "{\"fieldName\":\"stateIdentifier\",\"fieldType\":\"String\"}," +
            "{\"fieldName\":\"status.id\",\"fieldType\":\"number\"}," +
            "{\"fieldName\":\"status.name\",\"fieldType\":\"String\"}," +
            "{\"fieldName\":\"subBillingMethod\",\"fieldType\":\"String\"}," +
            "{\"fieldName\":\"subType.id\",\"fieldType\":\"number\"}," +
            "{\"fieldName\":\"subType.name\",\"fieldType\":\"String\"}," +
            "{\"fieldName\":\"summary\",\"fieldType\":\"String\"}," +
            "{\"fieldName\":\"team.id\",\"fieldType\":\"number\"}," +
            "{\"fieldName\":\"team.name\",\"fieldType\":\"String\"}," +
            "{\"fieldName\":\"type.id\",\"fieldType\":\"number\"}," +
            "{\"fieldName\":\"type.name\",\"fieldType\":\"String\"}," +
            "{\"fieldName\":\"zip\",\"fieldType\":\"String\"}]}");
}
